﻿#ifndef PROGRESSMONITORTHREAD_H
#define PROGRESSMONITORTHREAD_H

#include <QThread>
#include <progressinfo.h>
#include <progressmanage.h>
#include <progressservice.h>

//#include "vld.h"

/**
 * @brief The ProgressMonitorThread class 进程信息及状态监视类
 */
class ProgressMonitorThread : public QThread
{
    Q_OBJECT
public:
    explicit ProgressMonitorThread(QObject *parent = nullptr);
    ~ProgressMonitorThread();
    void stop();
signals:
    void signal_progressInfoList(QList<ProgressInfo>);
private:
    bool isRun;
    ProgressManage progressManage;
    ProgressService progressService;
    QMap<uint64_t,ProgressInfo> progressInfoMap;
protected:
    void run() override;
};

#endif // PROGRESSMONITORTHREAD_H
